﻿Imports System.ComponentModel
Imports NearAop

<AddNotifyPropertyChanged>
Public Class T02_静态属性变更通知
    Shared Event PropertyChanged As PropertyChangedEventHandler
    Shared Property MyProperty As Integer

    Public Shared Sub Test()
        AddHandler PropertyChanged, Sub(s, e) Console.WriteLine($"静态属性{e.PropertyName}被修改")
        MyProperty += 1
    End Sub
End Class
